package com.mz.mattress.admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mz.mattress.admin.api.req.InvestorQueryReq;
import com.mz.mattress.admin.api.resp.BonusSum;
import com.mz.mattress.admin.api.resp.InvestorSum;
import com.mz.mattress.api.common.Result;
import com.mz.mattress.api.entity.Investor;

import java.util.List;
import java.util.Set;

public interface InvestorService {

    Result<IPage<Investor>> listPage(InvestorQueryReq req);

    Result<Investor> getById(Integer id);

    Result add(Investor investor);

    Result updateById(Investor investor);

    Result deleteByIds(Set<Integer> ids);

    Result<List<Investor>> list();

    //首页统计
    Result<InvestorSum> headSum(Integer id);

    Result<BonusSum> investorSum(Integer typeId, Long memberMerId, Integer days);

    /**
     * 统计
     */
    void doSum();

}
